package com.lty.test;

/**
 *
 * @author lty
 */
public class TextProcessorFactory {
    public AbstractProcessor createProcessor(String type) {
        if ("A".equals(type)) {
            return new AProcessor();
        } else if ("B".equals(type)) {
            return new BProcessor();
        }else if ("C".equals(type)) {
            return new CProcessor();
        }
        return null;
    }
}
